<!DOCTYPE html>
<html>
#{include file="header.html"}#
<body class="gray-bg">
<div class="ibox-content">
  <form class="form-horizontal" method="post" action="#">
    <input type="hidden" name="order_id" id="order_id" value="#{$one.order_id}#">
    <div class="form-group">
      <label class="col-sm-2 control-label">快递公司</label>
      <div class="col-sm-10">
        <input name="express_name" class="form-control" type="text" value="#{$one.express_name}#" required/>
        <span class="help-block m-b-none"></span> </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">快递单号</label>
      <div class="col-sm-10">
        <input name="express_number" class="form-control" type="text" value="#{$one.express_number}#" required/>
        <span class="help-block m-b-none"></span> </div>
    </div>
	  <div class="form-group">
		  <label class="col-sm-2 control-label">收货信息</label>
       	<div class="col-sm-10"><span class="help-block m-b-none">#{$one.receiver_address}# #{$one.receiver_name}# #{$one.receiver_mobile}#</span> </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button class="btn  btn-w-m btn-info save-remarks" type="button">保存数据</button>
      </div>
    </div>
  </form>
</div>
<!-- 自定义js --> 
<script src="#{$smarty.const.APP}#/View/template/js/content.js?v=1.0.0"></script> 
<script>
$(document).ready(function () {
	$("body").on("click", ".save-remarks", function() {
		FormData=$("form").serialize();
		$.ajax({
			type: "POST",
			url: "#{$smarty.const.ACT}#/admin/GoodsOrder/goods_order_send/",
			data:FormData,
			dataType:"json",
			success: function(data){
				if(data.rtnstatus=='success'){
					layer.msg('操作成功', {icon: 1}); 		
				}
			},    
			complete: function() {   
				setTimeout(function(){
					//关闭窗口
					var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
					parent.layer.close(index);
				 },800);

   		  },
		});		
	});
});
</script>
</body>
</html>
